/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sheep.model.graph;

import edu.uci.ics.jung.graph.impl.DirectedSparseVertex;
import sheep.model.Task;

/**
 *
 * @author Nicolas Baumann
 */
public class OurVertex extends DirectedSparseVertex
{
  private String name;
  private boolean visited;
  private int inDegree;
  private int outDegree;
  
  public OurVertex()
  {
    super();
    visited = false;
  }
  
  public OurVertex(String name)
  {
    super();
    this.name = name;
    visited = false;
  }
  
  public boolean isVisited() {
    return visited;
  }

  public void setVisited(boolean visited) {
    this.visited = visited;
  }

  public int getInDegree() {
    return inDegree;
  }

  public void setInDegree(int inDegree) {
    this.inDegree = inDegree;
  }

  public int getOutDegree() {
    return outDegree;
  }

  public void setOutDegree(int outDegree) {
    this.outDegree = outDegree;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }
  
  public Task getTask(){
      return (Task)this.getUserDatum("Key");
  }
}
